package com.ruoyi.weixin.shop.service;

import com.ruoyi.common.core.page.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.weixin.shop.domain.WxShopMenu;
import com.ruoyi.weixin.shop.domain.vo.WxShopMenuAddBo;
import com.ruoyi.weixin.shop.domain.vo.WxShopMenuEditBo;
import com.ruoyi.weixin.shop.domain.vo.WxShopMenuQueryBo;
import com.ruoyi.weixin.shop.domain.vo.WxShopMenuVo;

import java.util.Collection;
import java.util.List;

/**
 * 微信商城菜单Service接口
 *
 * @author ruoyi
 * @date 2021-07-14
 */
public interface IWxShopMenuService extends IServicePlus<WxShopMenu> {
	/**
	 * 查询单个
	 * @return
	 */
	WxShopMenuVo queryById(Long id);

	/**
	 * 查询列表
	 */
	TableDataInfo<WxShopMenuVo> queryPageList(WxShopMenuQueryBo bo);

	/**
	 * 查询列表
	 */
	List<WxShopMenuVo> queryList(WxShopMenuQueryBo bo);

	/**
	 * 根据新增业务对象插入微信商城菜单
	 * @param bo 微信商城菜单新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(WxShopMenuAddBo bo);

	/**
	 * 根据编辑业务对象修改微信商城菜单
	 * @param bo 微信商城菜单编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(WxShopMenuEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
